arithmetic mean for grouped data